<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title></title>
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/css/bootstrap.min.css"/>
    <script src="__PUBLIC__/js/jquery-1.12.3.js" type="text/javascript" charset="utf-8"></script>
    <script src="__PUBLIC__/js/bootstrap.min.js" type="text/javascript" charset="utf-8"></script>
    <style type="text/css">
     a:hover{text-decoration:none;}
    </style>
    <script type="text/javascript">
       $(function(){
            $("#user").click(function(){
                $("#error").hide();
            });
            $("#pass").click(function(){
                $("#error").hide();
            });
       })
        
    </script>
</head>
<body>
<div class="container">
    <br /><br /><br />
    <br /><br />
    <div class="text-center">
        
        <img src="__PUBLIC__/img/logo.png"/>
        
        <span  style="font-size: 30px;display: inherit;"><a href="{:U('Home/Index/Index')}" class="text-info">SaySaying</a></span>
        
    </div>
    <br />
    <form class="" action="{:U('/Home/Login/index?do=chk')}" method="post">
        <div>
            <label for="exampleInputName2">账号 :</label>
            <input type="text" id="user" class="form-control" name="user" id="exampleInputName2" value="<?php echo cookie("user"); ?>" placeholder="用户名">
        </div><br />
        <div>
            <label for="exampleInputEmail2">密码 :</label>
            <input type="password" id="pass" class="form-control" name="pass" id="exampleInputEmail2" value="<?php echo cookie("pass"); ?>" placeholder="密码">
        </div>
        <div class="form-group">
            <div class="col-sm-10">
                <div class="checkbox">
                    <label>
                        <input name="remember" type="checkbox">记住密码
                    </label>
                </div>
            </div>
        </div>
        <br />
        
        <if condition="$flag eq 0">
            <div class="alert alert-danger" id="error">账号密码错误！</div>
        </if>
        <button type="submit" class="btn btn-block btn-success">登录</button><br />
        <a href="<?php echo U('/Home/Register/index') ?>"><button type="button" class="btn btn-block btn-danger">立即注册</button></a>
    </form>
</div>
<script type="text/javascript">var cnzz_protocol = (("https:" == document.location.protocol) ? " https://" : " http://");document.write(unescape("%3Cspan id='cnzz_stat_icon_1261708147'%3E%3C/span%3E%3Cscript src='" + cnzz_protocol + "s11.cnzz.com/z_stat.php%3Fid%3D1261708147%26show%3Dpic' type='text/javascript'%3E%3C/script%3E"));</script>
</body>
</html>